Defines a probability distribution.
Defines the interface for a probability distribution function.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(distribution), | intent(in) | :: | this |
The distribution object. |
||
| real(kind=real64), | intent(in) | :: | x |
The value at which to evaluate the function. |
The value of the function.
Gets the defined range for the distribution.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(distribution), | intent(in) | :: | this |
The distribution object. |
The defined range of the probability distributions [min, max]. In the event that either min or max are infinite, a value of huge(0.0d0) is returned as opposed to infinite to avoid possible issues with using these values directly.
Natural log of P(X <= x).
Compatibility fallback; override for accurate extreme lower tails.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(distribution), | intent(in) | :: | this | |||
| real(kind=real64), | intent(in) | :: | x |
Natural log density (or log probability mass for discrete laws).
Compatibility fallback; override to avoid PDF underflow.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(distribution), | intent(in) | :: | this | |||
| real(kind=real64), | intent(in) | :: | x |
Natural log of P(X > x).
Compatibility fallback; override for accurate extreme upper tails.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(distribution), | intent(in) | :: | this | |||
| real(kind=real64), | intent(in) | :: | x |
Computes the value of a distribution property.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(distribution), | intent(in) | :: | this |
The distribution object. |
The property value.
Computes the value of a distribution property.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(distribution), | intent(in) | :: | this |
The distribution object. |
The property value.
Computes the value of a distribution property.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(distribution), | intent(in) | :: | this |
The distribution object. |
The property value.
Defines the interface for a probability distribution function.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(distribution), | intent(in) | :: | this |
The distribution object. |
||
| real(kind=real64), | intent(in) | :: | x |
The value at which to evaluate the function. |
The value of the function.
Recenters the distribution about the supplied value.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(distribution), | intent(inout) | :: | this |
The distribution object. |
||
| real(kind=real64), | intent(in) | :: | x |
The value about which to recenter. |
Computes the standardized variable for the distribution.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(distribution), | intent(in) | :: | this |
The distribution object. |
||
| real(kind=real64), | intent(in) | :: | x |
The value of interest. |
The result.
Upper-tail probability P(X > x), evaluated directly for built-ins.
Compatibility fallback; override to avoid cancellation in upper tails.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(distribution), | intent(in) | :: | this | |||
| real(kind=real64), | intent(in) | :: | x |
Computes the value of a distribution property.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(distribution), | intent(in) | :: | this |
The distribution object. |
The property value.